package com.ruoyi.blog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.blog.constant.ArticleStatus;
import com.ruoyi.blog.core.domain.AjaxResult;
import com.ruoyi.blog.domain.BlogArticles;
import com.ruoyi.blog.domain.vo.BlogArticleVo;
import com.ruoyi.blog.mapper.BlogArticlesMapper;
import com.ruoyi.blog.service.BlogArticlesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 35038
 * @description 针对表【blog_articles】的数据库操作Service实现
 * @createDate 2024-10-10 21:03:10
 */
@Service
public class BlogArticlesServiceImpl extends ServiceImpl<BlogArticlesMapper, BlogArticles>
        implements BlogArticlesService {

    @Resource
    private BlogArticlesMapper blogArticlesMapper;

    @Override
    public List<BlogArticleVo> getList(BlogArticles blogArticles) {
        return blogArticlesMapper.getList(blogArticles);
    }

    @Override
    public List<BlogArticleVo> getRecentlyArticles() {
        return blogArticlesMapper.getRecentlyArticles();
    }

    @Override
    public AjaxResult download(Long[] artIds) {
        return null;
    }
}




